﻿// 默认右边
// 在IE6上总是无法显示出窗口，经过多次调试，发现在用 div + css 布局的网站上，该代码只是独立的放到最后，不能直接放在 web.bottom.asp 中，而 table 布局的网站，则没有这个问题
document.write('<div id="script_im" style="position:absolute; z-index:1000; !important;position:absolute; margin-top:140px; right:0px;">');
document.write('	<div id="script_im_top" style="width:105px; height:47px; background:url(/system/im/12_03/top.jpg) no-repeat top; overflow:hidden;">');
document.write('		<div style="float:left; width:74px; height:31px;"></div>');
document.write('		<div style="float:left; width:31px; height:31px; cursor:hand;"><img src="/system/im/12_03/close.jpg" width="31" height="31" border="0" onclick="javascript:script_im_close();" alt="关闭" /></div>');
document.write('	</div>');
document.write('	<div id="script_im_list" style="width:105px; height:130px; background:url(/system/im/12_03/list.jpg) repeat-y;">');
document.write('		<div style="padding:0px 0px 5px 11px;">');
document.write('			<a href=tencent://message/?uin=409360232&Site=&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:409360232:42 alt="业务咨询"></a>');
document.write('		</div>');
document.write('		<div style="padding:0px 0px 5px 11px;">');
document.write('			<a href=tencent://message/?uin=182241652&Site=&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:182241652:42 alt="业务咨询"></a>');
document.write('		</div>');
document.write('		<div style="padding:0px 0px 5px 11px;">');
document.write('			<a href=tencent://message/?uin=274389600&Site=&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:274389600:42 alt="业务咨询"></a>');
document.write('		</div>');
document.write('		<div style="padding:0px 0px 5px 11px;">');
document.write('			<a href=tencent://message/?uin=2533815501&Site=&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:2533815501:42 alt="业务咨询"></a>');
document.write('		</div>');
document.write('	</div>');
document.write('	<div id="script_im_bottom" style="width:105px; height:60px; background:url(/system/im/12_03/bottom.jpg) no-repeat top; overflow:hidden;"></div>');
document.write('</div>');

function auto_scroll()
{
	document.getElementById("script_im").style.top = document.documentElement.scrollTop;
}

window.onscroll = auto_scroll;
window.onresize = auto_scroll;
// 以下代码可能会与其他地方有冲突，因为 window.onload 只能运行一次，直接改为运行函数即可
// window.onload = auto_scroll;
auto_scroll();

function script_im_close()
{
	document.getElementById("script_im").style.display = "none";
}